{{define "home/article.html"}} {{ template "home/header" . }}


<head>
    <link rel="stylesheet" href="/assets/editor.md/css/editormd.preview.css" />
    <link rel="stylesheet" href="/assets/home/index.css" />
</head>

<body class="white-bg">
    <div class="wrapper">
        <div class="col-sm-12 title-bg">
            <div class="site-branding">
                <div class="site-title"><a href="/">币小四</a></div>
                <div class="site-description">分享我的笔记</div>
            </div>
        </div>

        <div class="col-sm-12 nav-x">
            <ul class="pmenu">
                <li><a href="/">HOME</a></li>
                <li><a href="">关于</a></li>

            </ul>
        </div>
        <div class="col-sm-12 content">
            <div class="col-sm-9 wrapper-blog">

                <div class="article-tx">
                    <div class="article-title">{{.article.Title}}</div>
                    <span class="glyphicon glyphicon-time" aria-hidden="true"></span>
                    <span>{{.article.UpdatedAt}}</span>
                    <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
                    <span>{{.type_name}}</span>
                </div>


                <div id="content" class="content_n">
                    <textarea style="display:none;">{{.article.Content}}</textarea>
                </div>


            </div>
            <div class="col-sm-3">
                {{range .classifylist}}
                <div class="t_classify"><a href="/home/{{.TypeName}}">{{.TypeName}}</a></div>
                {{end}}

            </div>

        </div>
        <div class="col-sm-12 footx">
            币小四
        </div>
    </div>
</body>

{{ template "home/footer" . }}

<script src="/assets/editor.md/lib/marked.min.js"></script>
<script src="/assets/editor.md/lib/prettify.min.js"></script>
<script src="/assets/editor.md/lib/raphael.min.js"></script>
<script src="/assets/editor.md/lib/underscore.min.js"></script>
<script src="/assets/editor.md/lib/sequence-diagram.min.js"></script>
<script src="/assets/editor.md/lib/flowchart.min.js"></script>
<script src="/assets/editor.md/lib/jquery.flowchart.min.js"></script>
<script src="/assets/editor.md/editormd.js"></script>

<script>
    $(function() {
        editormd.markdownToHTML("content", {
            htmlDecode: "style,script,iframe", // you can filter tags decode
            emoji: true,
            taskList: true,
            tex: true, // 默认不解析
            flowChart: true, // 默认不解析
            sequenceDiagram: true, // 默认不解析
        });
    });
</script>
{{end}}